fix the if check for invalid virtual LNK files
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 22 Jan 2025 11:31:04 +0000 (12:31 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 22 Jan 2025 11:31:04 +0000 (12:31 +0100)
should ensure we fix the DB metadata of LNK windows shortcuts with
virtual files type

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/discovery.cpp

index 831b85e334bb7219a27eb5390cc08672420bade7..dfd59a3b8cf82ed7d8f1b8071a6ee8d87402dbd8 100644 (file)
@@ -1679,7 +1679,7 @@ void ProcessDirectoryJob::processFileFinalize(
         item->_type = CSyncEnums::ItemTypeVirtualFileDehydration;
     }
 
-    if (item->_instruction != CSyncEnums::CSYNC_INSTRUCTION_NONE &&
+    if (item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE &&
         !item->isDirectory() &&
         _discoveryData->_syncOptions._vfs &&
         _discoveryData->_syncOptions._vfs->mode() == OCC::Vfs::Off &&